#ifndef __MINIUTIL_MULTINET_SOCKETMULTIPLEX_SELECT_H__
#define __MINIUTIL_MULTINET_SOCKETMULTIPLEX_SELECT_H__

#include "socketmultiplex.h"

namespace miniutil { namespace multinet {

	class SocketMulplexService_Select:public SocketMulplexService
	{
		public:
            SocketMulplexService_Select();
            ~SocketMulplexService_Select();
			virtual void run();
		protected:
			SOCKET init_fdset();
			void do_readable();
			void do_writable();
			void do_exception();
			void* pwritedfs;
			void* preaddfs;
			void* pexcepdfs;
            std::vector<SOCKET> tcpchecksocs;
			std::vector<SOCKET> udpchecksocs;

	};

} }

#endif
